home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmFive
- BorderStyle = 1 'Fixed Single
- Caption = "Xceed Recovery Wizard"
- ClientHeight = 4290
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7425
- Icon = "frmFive.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4290
- ScaleWidth = 7425
- Begin VB.CommandButton cmdNext
- Caption = "Next >"
- Enabled = 0 'False
- Height = 375
- Left = 3120
- TabIndex = 9
- Top = 3720
- Width = 1215
- End
- Begin VB.TextBox txtPassword
- Height = 285
- Left = 1920
- TabIndex = 2
- Top = 1800
- Width = 2655
- End
- Begin VB.CheckBox chkRestoreSecurity
- Caption = "Restore security"
- Height = 255
- Left = 3000
- TabIndex = 1
- Top = 960
- Width = 1575
- End
- Begin VB.CheckBox chkRestoreCorrupt
- Caption = "Restore corrupted files"
- Height = 255
- Left = 3000
- TabIndex = 0
- Top = 600
- Width = 2175
- End
- Begin VB.CommandButton cmdExit
- Caption = "Exit"
- Height = 375
- Left = 6000
- TabIndex = 6
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdRestore
- Caption = "Restore"
- Height = 375
- Left = 4560
- TabIndex = 3
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdPrev
- Caption = "< Previous"
- Height = 375
- Left = 1920
- TabIndex = 4
- Top = 3720
- Width = 1215
- End
- Begin VB.Line Line1
- BorderColor = &H80000011&
- Index = 0
- X1 = 1680
- X2 = 1680
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Line Line1
- BorderColor = &H80000009&
- Index = 1
- X1 = 1695
- X2 = 1695
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Label Label4
- Caption = "Step 4 of 4"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 10
- Top = 3840
- Width = 1095
- End
- Begin VB.Image Image1
- Height = 1260
- Left = 120
- Picture = "frmFive.frx":0BC2
- Top = 120
- Width = 1410
- End
- Begin VB.Label Label3
- Caption = "Password:"
- Height = 255
- Left = 1920
- TabIndex = 8
- Top = 1560
- Width = 1215
- End
- Begin VB.Label Label2
- Caption = "Options:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1920
- TabIndex = 7
- Top = 600
- Width = 735
- End
- Begin VB.Label Label1
- Caption = "Restoring"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1920
- TabIndex = 5
- Top = 120
- Width = 1695
- End
- Attribute VB_Name = "frmFive"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim xClass As clsXceed
- Dim ExitInc As Integer
- Public Function ShowForm(xObjects As clsXceed) As Integer
- 'This is where you will fill in the fields on your forms with the values
- 'in xObjects.
- Set xClass = xObjects
- txtPassword.Text = xObjects.xRestore.EncryptionPassword
- Me.Left = xClass.PositionLeft
- Me.Top = xClass.PositionTop
- Me.Show vbModal
- xClass.PositionLeft = Me.Left
- xClass.PositionTop = Me.Top
- Set xClass = Nothing
-
- 'At this point, the form is now hidden and ExitInc contains the increment.
- 'If ExitInc is not 0 then set xobjects to the field values.
- xObjects.xRestore.EncryptionPassword = txtPassword.Text
- ShowForm = ExitInc
- End Function
- Private Sub cmdExit_Click()
- Dim Answer As VbMsgBoxResult
- Answer = MsgBox("Are you sure that you want to quit?", vbYesNo + vbQuestion)
- If Answer = vbYes Then
- ExitInc = 0
- Me.Hide
- End If
-
- End Sub
- Private Sub cmdPrev_Click()
- ExitInc = -1
- Me.Hide
- End Sub
- Private Sub cmdRestore_Click()
- xClass.xRestore.RestoreCorruptedFiles = (chkRestoreCorrupt.Value = vbChecked)
- xClass.xRestore.RestoreSecurity = (chkRestoreSecurity.Value = vbChecked)
- xClass.RestoreBackup
-
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- If UnloadMode <> vbFormCode Then
- Cancel = True
- Call cmdExit_Click
- End If
- End Sub
-